home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / program / varlnsrc.arc / VARLINT.DOC < prev   
Text File  |  1988-07-14  |  2KB  |  60 lines

  1. VARLINT(Local)            'C' Utility        VARLINT(Local)
  2.  
  3. SYNOPSIS
  4.    varlint <program name> ... <program name>
  5.  
  6. HISTORY
  7.  
  8.    This program was developed under Lattice C on an Atari 520 ST. It
  9.    is compatable with (and tested on) DEC 11/70 and AT&T 3B5 processors,
  10.    running SYS V, and earlier versions too.  There is no reason that it
  11.    won't compile on any system.
  12.  
  13. USAGE
  14.    
  15.    This program is designed to assist when coding in C.  It double checks
  16.    your syntax for those funtions that have a variable number of arguments,
  17.    and use the same syntax as printf / scanf.
  18.  
  19. WHEN TO USE IT
  20.    
  21.    If your program passes lint, and it compiles ok, but crashes any-way,
  22.    or doesn't quite work right, try varlint.
  23.  
  24.    Mistakes with scanf or printf are one of the most frequent causes of
  25.    intermittant crashes.  "Lint" does not check the syntax, and neither
  26.    do most of the compilers.
  27.  
  28. CAPABILITIES:
  29.    
  30.    This program will detect and print out the following conditions.
  31.  
  32.     1)   More arguments following the control string than there are
  33.          percent signs in the control string.
  34.     2)   Too many arguments as compared to the control string.
  35.     3)   Mis-matches between the argument type and the item in
  36.          the control string.
  37.     4)   Null control string.
  38.     5)   Unknown specifiers after a percent sign in a control string.
  39.         6)   Missing ampersands (&) in front of numbers. (scan functions)
  40.     7)   Will not complain about valid uses. (allows funtion calls as
  41.          arguments, strings as *chars, etc.
  42.  
  43. RESTRICTIONS:
  44.     
  45.     1)   It does not yet check to ensure that the variables you name
  46.          are indeed the type you claim.
  47.     2)   The use of a character array is allowed by the scanf / printf
  48.          functions, but is not yet verified by the program.  You
  49.          are notified of "un-recognized contstruct" in these cases.
  50.  
  51. LICENSE:
  52.  
  53.         Copyright 1988 by Daniel B. Suthers, Concord, California, USA.
  54.         License is granted to distribute this program at will, as long as
  55.         the source is also provided free of charge to anyone who 
  56.         receives the binaries, or any one who wants it,
  57.         AND all copyright notices are left intact.
  58.  
  59.  
  60.